export interface Res<T = any> {
  code: 200 | 401 | 100
  message: string
  data: T
}

export interface PageRes<T = any> {
  code: 200 | 401 | 100
  message: string
  data: {
    list: T[]
    pageInfo: {
      total: number
      page: number
      size: number
      next?: number | null
      prev?: number | null
      totalPage?: number
    }
  }
}

export interface PaginationDto {
  page?: number
  size?: number
  [key: string]: any
}

export interface BaseDto {
  id?: string | number
  createTime?: string
  updateTime?: string
}
